<?php
/**
 * @author FeoniX
 * @version v1.0
 */
class Model{
	private $sql = '';
	private $table = '';

	public function __construct($_table){
		$this->table = $_table;
	}

	public function where($where){
		$this->sql .= ' where '.$where;
		return $this;
	}
	public function order($order){
		$this->sql .= ' order by '.$order;
		return $this;
	}
	public function limit($limit){
		$this->sql .= ' limit('.$limit.')';
		return $this;
	}

	public function select(){
		$this->sql = 'select * from ' .$this->table .$this->sql;
		return $this->sql;
	}
}

?>